package tema03.ex1;

public class Alumne {
	
	   private String nom;
	   private int dni;

	  
	public Alumne(String newNombre, int newDni) {
		 nom=newNombre;
	      dni=newDni;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public int getDni() {
		return dni;
	}

	public void setDni(int dni) {
		this.dni = dni;
	}

	@Override
	public String toString() {
		return "Alumne [nom=" + nom + ", dni=" + dni + "]";
	}

}
